package com.cc.mapper;

import com.cc.entity.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    List<News> findByPage(@Param("page") Integer page, @Param("pageSize") Integer pageSize);
    public int delete(Integer enId);
    public int updateByPrimaryKey(News news);
    News selectByCondition(int enId);
    int total();
    int save(News news);
}
